-- GENERATED SPELL FOR [Stormscale Toxicologist] --


function spell0_12321(pUnit, Event) --@Heal,Heal--
pUnit:FullCastSpellOnTarget(11642,pUnit)
pUnit:RegisterEvent('Sorts_12321', 3500, 1)
end

function spell1_12321(pUnit, Event) --@Holy Smite,n/a--
pUnit:FullCastSpellOnTarget(9734,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_12321', 2500, 1)
end

function Sorts_12321(pUnit, Event)
local choix_sorts_12321 = math.random(0, 1)
if choix_sorts_12321 == 0 then
pUnit:RegisterEvent('spell0_12321', 1, 1)
end
if choix_sorts_12321 == 1 then
pUnit:RegisterEvent('spell1_12321', 1, 1)
end
end

function mob12321_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_12321', math.random(1500, 3000), 1)
end

function mob12321_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12321_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12321_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(12321, 1, 'mob12321_Action')
RegisterUnitEvent(12321, 2, 'mob12321_Leave')
RegisterUnitEvent(12321, 3, 'mob12321_Kill')
RegisterUnitEvent(12321, 4, 'mob12321_Die')
